﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketMovie.Admin
{
    public partial class WebForm4 : System.Web.UI.Page
    {
        private DataClasses1DataContext dc = new DataClasses1DataContext();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void ButtonSave_Click(object sender, EventArgs e)
        {
            Country add = new Country();
            add.name_country = this.addcountry.Value;
            this.dc.Countries.InsertOnSubmit(add);
            this.dc.SubmitChanges();
        }

    }
}